﻿using SLClient.ServiceAPI;
using System;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;

namespace SLClient.CustomerControls
{
    public partial class LowerInfoWindow : ChildWindow
    {
        public LowerInfoWindow(ObservableCollection<UserInfo> lowerlist, UserInfo newUserInfo, string operation)
        {
            this.InitializeComponent();
            base.DataContext=new LowerInfoViewModel(this, lowerlist, newUserInfo, operation);
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }
    }
}

